﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjTemp.Desktop.Common.ResourceManagement
{
    public static class ResourceManageExtensions
    {
        public static string GetLang(this IResourceManage resourceManager, object key)
        {
            var defaultAspect = resourceManager.GetDefaultAspect(DesktopConst.LanguageResourceSubject);
            return resourceManager.GetResourceEntryValue(key, DesktopConst.LanguageResourceSubject, defaultAspect) as string;
        }


    }
}
